﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcAtletIS.Models
{
    public class ChipDataView
    {
        public ChipDataView(int competitionId, int measurementId, int dataIndex, string pcId, int lapCount, string chipTag, DateTime chipDateTime, TimeSpan chipDateTimeSpan, int performanceId, int disciplineListId,
            int startNumber, string surname, string firstName, DateTime birthdate, string countryId, string club, string sms, int rank, 
            string checkPointName, string disciplineListName, string clubName, string countryName)
        {
            this.CompetitionId = competitionId;
            this.MeasurementId = measurementId;
            this.DataIndex = dataIndex;
            this.PcId = pcId;
            this.LapCount = lapCount;
            this.ChipTag = chipTag;
            this.ChipDateTime = chipDateTime;

            this.ChipDateTimeSpan = chipDateTimeSpan;

            this.PerformanceId = performanceId;
            this.DisciplineListId = disciplineListId;

            this.StartNumber = startNumber;
            this.Surname = surname;
            this.FirstName = firstName;
            this.Birthdate = birthdate;
            this.CountryId = countryId;
            this.Club = club;
            this.SMS = sms;
            this.Rank = rank;

            this.CheckPointName = checkPointName;
            this.DisciplineListName = disciplineListName;
            this.ClubName = clubName;
            this.CountryName = countryName;
        }
        
        public int CompetitionId { get; set; }
        public int MeasurementId { get; set; }
        public int DataIndex { get; set; }
        public string PcId { get; set; }
        public int LapCount { get; set; }
        public string ChipTag { get; set; }
        public DateTime ChipDateTime { get; set; }

        public TimeSpan ChipDateTimeSpan { get; set; }

        public int PerformanceId { get; set; }
        public int DisciplineListId { get; set; }

        public int StartNumber { get; set; }
        public string Surname { get; set; }
        public string FirstName { get; set; }
        public DateTime Birthdate { get; set; }
        public string CountryId { get; set; }
        public string Club { get; set; }
        public string SMS { get; set; }
        public int Rank { get; set; }

        public string CheckPointName { get; set; }
        public string DisciplineListName { get; set; }
        public string ClubName { get; set; }
        public string CountryName { get; set; }
    }
}